package com.wlr.littleprogram.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wlr.littleprogram.dao.CateVarietyDao;
import com.wlr.littleprogram.entity.CateVariety;
import com.wlr.littleprogram.service.CateVarietyService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lrwang
 * @version 1.0
 * @date 2022/7/19 18:46
 */
@Service
@Slf4j
public class CateVarietyServiceImpl extends ServiceImpl<CateVarietyDao, CateVariety> implements CateVarietyService {
    @Autowired
    CateVarietyDao cateVarietyDao;

    @Override
    public List<CateVariety> getAllCate() {
        List<CateVariety> cateVarieties = cateVarietyDao.selectList(null);
        return cateVarieties;
    }
}
